function getDay(sDate, eDate){
	var startDate = transDate(sDate);
	var endDate = transDate(eDate);
	var betweenDay = (endDate.getTime() - startDate.getTime())/1000/60/60/24;
	return Math.floor(betweenDay);
}

function transDate(date){
	var retDate;
	if(date == null){
		retDate = new Date();
	} else {
		var dateArr = date.split("-");
		retDate = new Date(dateArr[0], Number(dateArr[1]-1), dateArr[2]);
	}
	return retDate;
}